﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using System.Diagnostics;

namespace MakersEngine
{
    class Program
    {
       
        static void Main(string[] args)
        {
            int width = Console.WindowWidth;
            int height = Console.WindowHeight;
            Console.SetWindowSize(width, height*2);
            
            Logging.Normal("MakersEngine " + ReqVar.version + "\r\nAll Rights Reserved, DO NOT REDISTRIBUTE!");
            INIFile ini = new INIFile(@Environment.CurrentDirectory + @"\settings.ini");

            string ReadEULA = ini.Read("General", "ReadEULA");
            if (ReadEULA == "false")
            {
                using (Start_Form EULA = new Start_Form())
                {
                    EULA.ShowDialog();
                }
            }

            using (Choose_Core PickEMU = new Choose_Core())
            {
                PickEMU.ShowDialog();
            }
            Logging.Warning("\r\nPreparing script for: "+ReqVar.Core+"\r\nPlease Wait...");


            if (ReqVar.Core == "TrinityCore")
            {
                TrinityMain.TrinityStart();
                // Main ends here if Trinity
            }
            else if (ReqVar.Core == "ArcEMU")
            {
            }
            else if (ReqVar.Core == "MaNGOS")
            {
            }
            else if (ReqVar.Core == "VoragineCore")
            {
            }
            else if (ReqVar.Core == "Skyfire EMU")
            {
            }
        }
    }
}
